#ifndef _H_FRAME
#define _H_FRAME

#include "winElmt.h"
#include "fieldset.h"
#include "winbar.h"
#include "color.h"
#include "styleSheet.h"

#define FR_DFT_BKG_COL new color(COLOR_LIGHT_GREY)

class frame: public fieldSet{

    protected:
        int ICX;
        int ICY;

        bool dragEnabled;
        bool closed;
        bool minimized;
        bool locked;

        winBar* bar;

    public:
        frame();
        frame(window*);
        ~frame();

        void setClosed(bool);
        bool getClosed();

        void setMinimized(bool);
        bool getMinimized();

        void setLocked(bool);
        bool getLocked();

        void setBar( winBar* );
        void display();

        void setDrag(bool);
        bool getDrag();

        virtual unsigned char eventExec(unsigned char);

        virtual void draggingEvent(int,int);
        virtual void activeGetEvent();
        virtual void activeLoseEvent();

};

#endif
